﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Qiang.Data
{
    public interface IShapeList:IList<IShape>
    {

        #region 事件

        /// <summary>
        /// 图形添加事件
        /// </summary>
        event EventHandler<ShapeEventArgs> ShapeAdded;

        /// <summary>
        /// 图形删除事件
        /// </summary>
        event EventHandler<ShapeEventArgs> ShapeRemoved;

        #endregion


        #region 属性

        /// <summary>
        /// 所属数据集
        /// </summary>
        IDataset ParentDataset { get; }

        /// <summary>
        /// 指示事件是否挂起
        /// </summary>
        bool EventsSuspended { get; }


        #endregion
        

        #region 方法

        /// <summary>
        /// 生成图形集合。
        /// </summary>
        /// <returns></returns>
        List<IShape> ToList();
        

        #endregion

    }
}
